package com.program.facesigninsystem.dao;

import com.program.facesigninsystem.entity.Organization;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IorganizationDao {
    void addNewOrganization(
            @Param("oid") String oid,
            @Param("oname") String oname,
            @Param("email") String email,
            @Param("createtime") String createtime,
            @Param("ocode") String ocode,
            @Param("phone") String phone,
            @Param("uid") String uid
    );
    Organization selectbyocode(@Param("ocode") String ocode);

    void deletebyoid(@Param("oid") String oid);

    Organization selectbyoid(@Param("oid") String oid);

    List<Organization> selectbyuid(@Param("uid") String uid);

    void updatebyoid(
            @Param("oid") String oid,
            @Param("oname") String oname,
            @Param("email") String email,
            @Param("phone") String phone
    );
    List<Organization> selectbyoname(@Param("oname") String oname,@Param("uid") String uid);


}
